using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;

namespace Manaddiction.UI
{
    public class TipsPanel : UIPanel
    {
        public TextMeshProUGUI tips_text;
        
        private static TipsPanel instance;

        protected override void Awake()
        {
            base.Awake();
            instance = this;
        }

        public void ShowTips(string tip)
        {
            tips_text.text = tip;
            Show();
        }
        
        public static TipsPanel Get()
        {
            return instance;
        }
    }
}
